package com.qx.chat.system.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="qx_org_groupuser")
public class GroupUser extends Entity{
	
	private static final long serialVersionUID = -4138897124554139234L;

	@Id
	private String id;
	//群组ID
	@DBRef
	private Group group;
	//用户ID
	@DBRef
	private User user;

	//排序
	private int order;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Group getGroup() {
		return group;
	}
	public void setGroup(Group group) {
		this.group = group;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
}
